package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 沥青低温延伸度试验仪_结果数据业务对象 n_laboratory_asphalt_low_temperature_elongation_res
 *
 * @author cj
 * @date 2023-09-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NLaboratoryAsphaltLowTemperatureElongationResBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 设备id
     */
    @NotBlank(message = "设备id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceId;

    /**
     * 位移量，单位为mm
     */
    @NotNull(message = "位移量，单位为mm不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal length1;

    /**
     * 位移量，单位为mm
     */
    @NotNull(message = "位移量，单位为mm不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal length2;

    /**
     * 位移量，单位为mm
     */
    @NotNull(message = "位移量，单位为mm不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal length3;

    /**
     * 延伸速率，mm/min
     */
    @NotNull(message = "延伸速率，mm/min不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer speed1;

    /**
     * 延伸速率，mm/min
     */
    @NotNull(message = "延伸速率，mm/min不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer speed2;

    /**
     * 当前温度
     */
    @NotNull(message = "当前温度不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal currTemp;

    /**
     * 设定的温度值
     */
    @NotNull(message = "设定的温度值不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal setTemp;

    /**
     * 原始数据
     */
    @NotBlank(message = "原始数据不能为空", groups = { AddGroup.class, EditGroup.class })
    private String originalData;

    /**
     * 样品id
     */
    @NotBlank(message = "样品id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sampleId;

    /**
     * 是否合格（0不合格，1合格）
     */
    private Integer eligible;
    /**
     * 是否关联（0未关联，1已关联）
     */
    private Integer relevance;
}
